import request from '@/utils/request'

// 查询试卷试题关系列表
export function listPaperQuestionRelation(query) {
  return request({
    url: '/examination/paperQuestionRelation/list',
    method: 'get',
    params: query
  })
}

// 查询试卷试题关系详细
export function getPaperQuestionRelation(paperQuestionId) {
  return request({
    url: '/examination/paperQuestionRelation/' + paperQuestionId,
    method: 'get'
  })
}

// 新增试卷试题关系
export function addPaperQuestionRelation(data) {
  return request({
    url: '/examination/paperQuestionRelation',
    method: 'post',
    data: data
  })
}

// 修改试卷试题关系
export function updatePaperQuestionRelation(data) {
  return request({
    url: '/examination/paperQuestionRelation',
    method: 'put',
    data: data
  })
}

// 删除试卷试题关系
export function delPaperQuestionRelation(paperQuestionId) {
  return request({
    url: '/examination/paperQuestionRelation/' + paperQuestionId,
    method: 'delete'
  })
}
